package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DeviceDayInfo1Mapper;
import com.ruoyi.system.domain.DeviceDayInfo1;
import com.ruoyi.system.service.IDeviceDayInfo1Service;

/**
 * 设备1日数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-19
 */
@Service
public class DeviceDayInfo1ServiceImpl implements IDeviceDayInfo1Service 
{
    @Autowired
    private DeviceDayInfo1Mapper deviceDayInfo1Mapper;

    /**
     * 查询设备1日数据
     * 
     * @param id 设备1日数据主键
     * @return 设备1日数据
     */
    @Override
    public DeviceDayInfo1 selectDeviceDayInfo1ById(Long id)
    {
        return deviceDayInfo1Mapper.selectDeviceDayInfo1ById(id);
    }

    /**
     * 查询设备1日数据列表
     * 
     * @param deviceDayInfo1 设备1日数据
     * @return 设备1日数据
     */
    @Override
    public List<DeviceDayInfo1> selectDeviceDayInfo1List(DeviceDayInfo1 deviceDayInfo1)
    {
        return deviceDayInfo1Mapper.selectDeviceDayInfo1List(deviceDayInfo1);
    }

    /**
     * 新增设备1日数据
     * 
     * @param deviceDayInfo1 设备1日数据
     * @return 结果
     */
    @Override
    public int insertDeviceDayInfo1(DeviceDayInfo1 deviceDayInfo1)
    {
        return deviceDayInfo1Mapper.insertDeviceDayInfo1(deviceDayInfo1);
    }

    /**
     * 修改设备1日数据
     * 
     * @param deviceDayInfo1 设备1日数据
     * @return 结果
     */
    @Override
    public int updateDeviceDayInfo1(DeviceDayInfo1 deviceDayInfo1)
    {
        return deviceDayInfo1Mapper.updateDeviceDayInfo1(deviceDayInfo1);
    }

    /**
     * 批量删除设备1日数据
     * 
     * @param ids 需要删除的设备1日数据主键
     * @return 结果
     */
    @Override
    public int deleteDeviceDayInfo1ByIds(Long[] ids)
    {
        return deviceDayInfo1Mapper.deleteDeviceDayInfo1ByIds(ids);
    }

    /**
     * 删除设备1日数据信息
     * 
     * @param id 设备1日数据主键
     * @return 结果
     */
    @Override
    public int deleteDeviceDayInfo1ById(Long id)
    {
        return deviceDayInfo1Mapper.deleteDeviceDayInfo1ById(id);
    }
}
